package com.xs.project.service.impl;

import com.xs.project.entity.XsSubCourse;
import com.xs.project.mapper.XsSubCourseMapper;
import com.xs.project.service.XsSubCourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class XsSubCourseServiceImpl implements XsSubCourseService {
    @Resource
    private XsSubCourseMapper xsSubCourseMapper;
    @Override
    public void insertXsSubCourse(XsSubCourse xsSubCourse) {
        xsSubCourseMapper.insertXsSubCourse(xsSubCourse);
    }

    @Override
    public List<XsSubCourse> selectXsSubCourse(String courseName) {
        xsSubCourseMapper.selectXsSubCourse(courseName);
        return null;
    }

    @Override
    public void updateXsSubCourse(XsSubCourse xsSubCourse) {
        xsSubCourseMapper.updateXsSubCourse(xsSubCourse);
    }

    @Override
    public void deleteXsSubCourse(Integer id) {
        xsSubCourseMapper.deleteXsSubCourse(id);
    }
}
